package com.edu.jvm.unit01;

public class ClassinitTest {
    static int num=1;

    static {
        num = 2;
        number = 3322;
        System.out.println(num);
        //报错：非法的前向引用
//        System.out.println(number);
    }

    private static int number;

    public static void main(String[] args) {
        System.out.println(ClassinitTest.num);
        System.out.println(ClassinitTest.number);
    }
}
